<!DOCTYPE html>
<html lang="en">
<head>
    
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"
          charset="UTF-8">
    <title>启慧智库</title>
    <link href="../css/bootstrap-3.3.5-dist/css/bootstrap.css" rel="stylesheet">
	<script src="../js/jquery-2.2.3.min.js"></script>
<script src="../js/jquery-ui.min.js"></script>
<link href="../css/jquery-ui.min.css" rel="stylesheet">
</head>
<body >
    <div class="  glyphicon glyphicon-ok  alert alert-success" id="showSuccessNotic"
         style="position:fixed;left: 40%;right: 40%;z-index: 1004;top: 10%;display: none;"> 操作成功!
    </div>
<div id="showSuccessNoticeIphone"
     style="z-index: 1004;width:20%;height: 20%;margin:auto;position:fixed;top:0px;bottom:0px;right:0px;left:0px;display: none;"></div>

<div id="showErrorInfoDIV"
     style="z-index: 1005;display:none;position: absolute;  top: 0px; bottom: 0px ;left: 0px; right: 0px; ;">


    <div style="width:auto;height: 200px;position: fixed;left: 0px;right: 0px;top: 40%;bottom: 60%;margin: auto;;"
         id="">
        <div class="modal "
             style="overflow:hidden;overflow-y:hidden;position:relative;left:0px;right:0px;bottom:0px;top:0px;margin:auto;display:block;">
            <div class="modal-dialog">
                <div class="modal-content  ">
                    <div class="modal-header" style="cursor: move;">

                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>

                        <h4 class=" glyphicon glyphicon-alert " style="color: red;">
				<span>错误</span>
			</h4>
                    </div>

                    <div class="modal-body  ">
                        <p id="showWarnContent" style="text-align:center;;color:red; font-weight:bold;">请确认您的消息?</p>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-danger" data-dismiss="modal" id="closeButton">好的</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

<div id="shadow"
     style="display:none;position: absolute;  top: 0px; bottom: 0px ;left: 0px; right: 0px; z-index: 1003;background: rgba(0,0,0,0.4); "></div>

<div id="loadPic"
     style="text-align: center;padding: 10px;color: white;font-weight:bold   ;border-radius:8px;background: rgba(0,0,0,0.5);;z-index: 1004;width: 200px;height:40px;margin:auto;position:fixed;top:0px;bottom:0px;right:0px;left:0px;display: none;">
<i class="fa fa-refresh fa-spin"></i>
    <span style="letter-spacing: 4px;">请稍后...</span>
</div>
	<div       class="panel panel-default"   style="background: white;height:100%;display: block;position: relative">
	 <p class="navbar-form" style="width:100%;margin-bottom:10px;">
        <div class="input-group" style="padding:10px;z-index: 0">
                <input type="text" class="form-control searchValue" placeholder="" style="width:100%;" >
                <span class="input-group-btn" >
                        <button class="btn btn-success">
                                <span class="glyphicon glyphicon-search">搜素</span>
                        </button>
                </span>
        </div>
       </p>
	
	<div style="margin-left:30px">
        <button title ="给服务器添加计划任务" class="btn btn-success btn-xs" id="createCrontab" type="button"><span
                class="glyphicon glyphicon-plus "></span></button>
	</div>
    <table class="table  table-hover table-striped   table-responsive  table-bordered">
        <thead style="word-break: keep-all;white-space:nowrap">
        <tr>
            <th>服务器</th>
            <th>登录账户</th>
            <th>运行时间</th>
            <th>命令</th>
            <th>备注</th>
            <th style="min-width:70px">操作</th>
        </tr>
        </thead>
        <tbody id="tbody"></tbody>
    </table>
<div style="font-family: 微软雅黑;overflow: auto;z-index: 1004;width:auto;height: 100%;position: fixed;left: 0%;right: 0px;top: 0%;bottom: 0px;display:none;"
     id="editCrontab">
    <div class="modal "
         style="height: 95%;overflow:hidden;overflow-y:hidden;position:relative;left:0px;right:0px;bottom:0px;top:0px;margin:auto;display:block;">
        <div class="modal-dialog">
            <div class="modal-content  ">
                <div class="modal-header" style="cursor: move;">

                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>

                    <h4 class=" glyphicon glyphicon-edit " style="color: green;">编辑计划任务</h4>
                </div>

                <div class="modal-body">
                    <div class="form-horizontal">
                        <div class="form-group">

                            <div class="col-md-12">
                                <label class="control-label col-md-2">运行时间</label>
                                <div class="col-md-10">
                                    <input id="time" class="form-control" placeholder ="分 时 日 月 星期">
                                </div>
                            </div>
                            <div class="col-md-12" style="margin-top:10px">
                                <label class="control-label col-md-2">命令</label>
                                <div class="col-md-10">
                                    <input id="cmd" class="col-md-12 form-control"></input>


                                </div>
                            </div>

                            <div class="col-md-12" style="margin-top:10px">
                                <label class="control-label col-md-2">备注</label>
                                <div class="col-md-10">
                                    <input id="description" class="form-control"></input>
                                </div>
                            </div>

                        </div>

                    </div>


                </div>
                <div class="modal-footer">
                    <button style="float:left" type="button" class="btn btn-default cancelDiv" data-dismiss="modal"
                            >取消
                    </button>
                    <button type="button" style="float:right" class="btn btn-success" data-dismiss="modal"
                            id="save">保存
                    </button>
                </div>
            </div>
        </div>
    </div>


</div>

<div id="shadow"
     style="display:none;position: absolute;  top: 0px; bottom: 0px ;left: 0px; right: 0px; z-index: 1003;background: rgba(0,0,0,0.4); "></div>
</body>
<script src="../js/CheungSSHGlobal.js"></script>
<script src="../js/crontab.js"></script>
</html>


